package personal.vivian.logic;

import personal.vivian.builder.DataTemplate;
import personal.vivian.constants.EditMode;
import personal.vivian.interf.DataValdator;
import personal.vivian.resover.Resovler;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;

public class TemplatItem {
    Field targetField;
    String name;
    boolean nullable=true;
    List<DataValdator> dataValdators=new ArrayList<>();
    List<Resovler> resovlers=new ArrayList<>();
    private EditMode editMode;
    private DataTemplate dataTemplate;
    public Field getTargetField() {
        return targetField;
    }

    public void setTargetField(Field targetField) {
        this.targetField = targetField;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isNullable() {
        return nullable;
    }

    public void setNullable(boolean nullable) {
        this.nullable = nullable;
    }

    public List<DataValdator> getDataValdators() {
        return dataValdators;
    }

    public void setDataValdators(List<DataValdator> dataValdators) {
        this.dataValdators = dataValdators;
    }

    public EditMode getEditMode() {
        return editMode;
    }

    public void setEditMode(EditMode editMode) {
        this.editMode = editMode;
    }

    public DataTemplate getDataTemplate() {
        return dataTemplate;
    }

    public void setDataTemplate(DataTemplate dataTemplate) {
        this.dataTemplate = dataTemplate;
    }

    public List<Resovler> getResovlers() {
        return resovlers;
    }

    public void setResovlers(List<Resovler> resovlers) {
        this.resovlers = resovlers;
    }
}
